﻿using System.Web.Mvc;

namespace cludg.Web.Core.RenderHelpers
{
	public static class DisabledRenderHelper
	{
		public static MvcHtmlString Disabled(this HtmlHelper html, bool isDisabled)
		{
			string result = string.Empty;
			if (isDisabled)
			{
				result = "\"disabled\"=\"disabled\"";
			}
			return MvcHtmlString.Create(result);
		}
	}
}